﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement._04.OBJECT;
using HotelManagement._03.DAO;

namespace HotelManagement._02.BUS
{
    class RoomBUS
    {
        RoomDAO m_RoomDAO = new RoomDAO();

        public DataTable ViewRoomInfo()
        {
            return m_RoomDAO.ViewRoomInfo("pr_tblRoom_SelectRoomInfo");
        }

        public DataTable SelectToComboBox()
        {
            return m_RoomDAO.ViewRoomInfo("pr_tblRoomType_SelectToComboBox");
        }

        public bool UpdateRoomInfo(Room ip_Room)
        {
            return m_RoomDAO.UpdateRoomInfo(ip_Room, "pr_tblRoom_Update");
        }

        public DataTable ViewRoomSearch(string ip_RoomID)
        {
            return m_RoomDAO.ViewRoomSearch(ip_RoomID, "pr_tblRoom_SearchRoomInfo");
        }
    }
}
